package com.woniu.user.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 预约信息表
 * </p>
 *
 * @author Silas
 * @since 2023-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yoga_book")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "book_id", type = IdType.AUTO)
    private Integer bookId;

    /**
     * 预约单号
     */
    private String no;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 用户名(username)
     */
    private String userName;

    /**
     * 教练ID
     */
    private Integer coachId;

    /**
     * 教练名(username)
     */
    private String coachName;

    /**
     * 预约发起时间
     */
    private LocalDateTime createTime;

    /**
     * 预约处理时间
     */
    private LocalDateTime finishTime;

    /**
     * 课程ID
     */
    private Integer lessonId;

    /**
     * 课程名称
     */
    private String lessonName;

    /**
     * 预约时间
     */
    private LocalDateTime lessonTime;

    /**
     * 预约状态(同意/不同意/待处理)
     */
    private String state;

    /**
     * 占用表ID
     */
    private Integer occupyId;


}
